package org.vic.decorator;

/**
 * 具体装饰器A
 * Created by VIC.Huang on 2016/8/29.
 */
public class ConcreteDecoratorA extends Decorator {

    public ConcreteDecoratorA(Component component) {
        super(component);
    }

    public void method() {
        System.out.println("针对该方法加一层A包装！");
        component.method();
        System.out.println("A包装结束！");
    }
}
